﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WoChu.Infrastructure.Dapper;
using WoChu.Infrastructure.Data;
using WoChu.Infrastructure.ModelCommmon;

namespace WoChu.WMS.Repository
{
    public class UserRepository : RepositoryBase<AppUserList, int>
    {
        public UserRepository() : base(ConnectionsDBKey.ERP_Ora) { }

        public void GetUserList(PageInfo<AppUserList, AppUserList> pageInfo)
        {
            

            QueryPage<AppUserList>(pageInfo, new SearchInfo("USERID,USERCODE,USERNAME,PASSWORD",// orderby:"USERID",
                conditions: pageInfo.Conditions));
        }
        
        public int Insert(AppUserList entity)
        {
            return base.Insert(entity, "appuserlist_Seq.nextval");
        }
    }
}
